﻿using System.Collections.Generic;
using System.Linq;

namespace MoreExtentions
{
    public static partial class Linq
    {
        public static bool Contains<T>(this IEnumerable<T> thisCollection, params IEnumerable<T>[] collections)
        {
            return collections.SelectMany(collection => collection).All(item => thisCollection.Contains(item));
        }
    }
}